package com.open.capacity.sign.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.common.model.Dayoff;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DayoffDao extends BaseMapper<Dayoff> {

    void editDayoffExState(Dayoff dayoff);//改变异常状态

    List<Dayoff> getDayoffsException();//获取异常列表

    Integer dayoffSubmit(Dayoff dayoff);//dayoff的添加

    int findCountByDayoff(Dayoff dayoff);//根据dayoff查看是否有重复的日期

    int count(Map<String, Object> params);

    List<Dayoff> findList(Map<String, Object> params);

    int findDayoffByDate(String nowdate);//检测是否为放假时间

    Integer dayoffDelete(Dayoff dayoff);

    Integer dayoffUpdate(Dayoff dayoff);
}
